<? 
if(!$_SESSION['memberID']){
    header('Location:/new/d/shops/gtindex.html');
    exit;
}
include("ggheader.php"); 
include_once("/var/www/html/new/com.inc.php");
$id=$_SESSION['memberID'];
$sel="select headphoto from pft_member where id=$id";
$GLOBALS['le']->query($sel);
$row = $GLOBALS['le']->fetch_assoc();
include_once('/var/www/html/new/d/common/autoload.php');
$mem = new \pft\Member\MemberAccount($GLOBALS['le']);
$m_info = $mem->GetOne($_SESSION['memberID']);
$tt=array("dname","address","mobile","qq","headphoto","cname","ctel","alipay","position","email","com_name","com_type","province","city","fax","website","business","short_company_name");

?>
	<link rel="stylesheet" href="http://www.12301.cc/shops/css/gmem.css"/>
	<script src="http://www.12301.cc/js/md5.js" type="text/javascript"></script>
	<script src="http://www.12301.cc/js/chPs_gly.js" type="text/javascript" ></script>
	<div class="mem_con">
		<div class="mem_left">
			<div id="mem_photo"><a href="javascript:showBg();"  class="info_img"><img src="<?=$m_info['headphoto']?$m_info['headphoto']:"http://www.12301.cc/images/touxiang.png"?>" title="点击修改头像"/></a></div>
			<ul>
				<li><a href="gmem.html">订单中心</a></li> 
				<li><a href="gmem_Data.html">个人资料</a></li>
				<li><a href="gmem_pass.html">修改密码</a></li>	
				<!-- <li><a href="#">安全退出</a></li> -->
			</ul>
		</div>
		<div class="mem_right pass">
			<div  class="hcon">
				<div class="password_mem">
					<iframe name="ifr" style="display:none;"></iframe>
					<form action="../chPs_gly.php" method="post" target="ifr" name="form">
						<p>
							<b class="tit">当前密码：</b>
							<span class="con1">
								<input type="password" class="inpcon" id="ch_ops" />
								<input type="hidden" name="ops" id="ops" />
							</span>
							<span class="con2">请您输入当前使用的密码</span>
						</p>
						<p>
							<b class="tit">新密码：</b>
							<span class="con1">
								<input type="password" class="inpcon" name="newpd"  onkeyup="chPs(this);" id="ch_nps" />
								<input type="hidden" name="nps" id="nps" />
								</span>
							<span class="con2" id="ptxt">请输入6-20位的组合密码</span>
						</p>
						<p class="lh21">
							<b class="tit"></b>
							<span id="plvl" class="con1"><!--四个等级的class为    1没有： con1 ; 2弱： con1 qia1 ; 3中： con1 qia2 ; 4强： con1 qia3 ;-->
								<span class="qd1">弱</span>
								<span class="qd2">中</span>
								<span class="qd3">强</span>
							</span>
						</p>
						<p>
							<b class="tit">确认密码：</b>
							<span class="con1"><input type="password" class="inpcon" name="confirmpd" onchange="douPs();" id="ch_dps" /><input type="hidden" name="dps" id="dps" /></span>
							<span class="con2">再次确认您的新密码</span>
						</p>
						<p><input type="button" class="ok" onclick="sub()" value="确认修改" /></p>
					</form>
				</div>
			</div>
		</div>
	</div>
	<?php include("ggfoot_m.php");?>
<script type="text/javascript">
/*修改头像*/
function uploadevent(status,picUrl,callbackdata){
    closeBg();
    status += ''; 
    switch(status){
     case '1':
		var time = new Date().getTime();
		// var filename162 = picUrl+'_162.jpg';
        // alert(filename162);
        document.getElementById('user_photo').src=""+picUrl+"";
		 window.parent.location='shops/gmem_Data.html';
        break;
    case '-1':
        window.parent.location='shops/gmem_Data.html';
        break;
    default:
		window.parent.location='shops/gmem_Data.html';
    } 
}

/*修改头像遮罩*/
function showBg() { 
	var bh = $("html").height(); 
	var bw = $("html").width(); 
	$("#fullbg").css({ 
	height:bh, 
	width:bw, 
	display:"block" 
	}); 
	$("#dialog").show(); 
} 
function closeBg() { 
    $("#fullbg,#dialog").hide(); 
} 
</script>
</body>
</html>
<div id="fullbg"></div> 
<div id="dialog"> 
<p class="close"><a href="#" onclick="closeBg();">X</a>  
<div >
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
	codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
	WIDTH="650" HEIGHT="450" id="myMovieName">
	<PARAM NAME=movie VALUE="avatar.swf">
	<PARAM NAME=quality VALUE=high>
	<PARAM NAME=bgcolor VALUE=#FFFFFF>
	<param name="flashvars" value="imgUrl=./default.jpg&uploadUrl=./upfile.php&uploadSrc=false" />
	<EMBED src="avatar.swf" quality=high bgcolor=#FFFFFF WIDTH="650" HEIGHT="450" wmode="transparent" flashVars="imgUrl=./default.jpg&uploadUrl=./upfile.php&uploadSrc=false"
	NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash" allowScriptAccess="always"
	PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
	</EMBED>
</OBJECT> 